package com.jddup.test.pojo.mysql;

import com.baomidou.mybatisplus.annotation.*;
import com.jddup.common.annotations.ColumnDes;

import java.math.BigDecimal;
import java.util.Date;

@TableName("t_ws_market_kline_sub")
public class WsMarketKLineSub {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("ch")
    private String ch;
    @TableField("mrid")
    @ColumnDes(scale = 8)
    private BigDecimal mrid;
    @TableField("open")
    @ColumnDes(scale = 8)
    private BigDecimal open;
    @TableField("close")
    @ColumnDes(scale = 8)
    private BigDecimal close;
    @TableField("low")
    @ColumnDes(scale = 8)
    private BigDecimal low;
    @TableField("high")
    @ColumnDes(scale = 8)
    private BigDecimal high;
    @TableField("amount")
    @ColumnDes(scale = 8)
    private BigDecimal amount;
    @TableField("vol")
    @ColumnDes(scale = 8)
    private BigDecimal vol;
    @TableField("count")
    @ColumnDes(scale = 8)
    private BigDecimal count;
    @TableField(value = "create_time", updateStrategy = FieldStrategy.NEVER)
    @ColumnDes(isNullable = false,defaultValue = " DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
    private Date createTime;

    public String getCh() {
        return ch;
    }

    public void setCh(String ch) {
        this.ch = ch;
    }

    public BigDecimal getMrid() {
        return mrid;
    }

    public void setMrid(BigDecimal mrid) {
        this.mrid = mrid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getOpen() {
        return open;
    }

    public void setOpen(BigDecimal open) {
        this.open = open;
    }

    public BigDecimal getClose() {
        return close;
    }

    public void setClose(BigDecimal close) {
        this.close = close;
    }

    public BigDecimal getLow() {
        return low;
    }

    public void setLow(BigDecimal low) {
        this.low = low;
    }

    public BigDecimal getHigh() {
        return high;
    }

    public void setHigh(BigDecimal high) {
        this.high = high;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getVol() {
        return vol;
    }

    public void setVol(BigDecimal vol) {
        this.vol = vol;
    }

    public BigDecimal getCount() {
        return count;
    }

    public void setCount(BigDecimal count) {
        this.count = count;
    }
}
